﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web;

namespace LightWadf.Filter
{
    public abstract class IFilter : Attribute
    {
        /// <summary>
        /// 若前置方法返回结果不为空，则不调用逻辑处理方法
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        public abstract object BeforeProcess(HttpContext context);
        public abstract void AfterProcess(HttpContext context, ref object result);
    }
}
